package zdream.pmfield.stage.message;

import java.util.Objects;

import zdream.pmfield.stage.buff.foe.FoeStageBuff;
import zdream.pmfield.stage.object.FoeActor;

/**
 * @author Zdream
 * @date 2023-11-22
 * @since 0.0.1
 */
public class FoeRemoveBuffMessage extends StageMessage {
	public final FoeActor foe;
	public final FoeStageBuff buff;

	public FoeRemoveBuffMessage(FoeStageBuff buff) {
		this.type = StageMessageType.REPORT;
		this.buff = Objects.requireNonNull(buff);
		this.foe = buff.target;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(64);
		builder.append("[RB]").append(' ');
		foe.appendStringWithoutHp(builder);
		builder.append(' ');
		builder.append("删除了").append("状态").append(':').append(' ').append(buff);

		return builder.toString();
	}
}
